﻿using Swimj.CommonLib.Attributes;

namespace Production.CommonLib.Models
{
    public class StandardBomInfoResponseDto
    {
        public int Id { get; set; }

        /// <summary>
        /// BOM编码
        /// </summary>
        [TableColumn(DisplayText = "BOM编码")]
        public string? Code { get; set; }

        /// <summary>
        /// BOM名称
        /// </summary>
        [TableColumn(DisplayText = "BOM名称")]
        public string? Name { get; set; }

        /// <summary>
        /// 版本号
        /// </summary>
        [TableColumn(DisplayText = "版本号")]
        public string? Version { get; set; }

        /// <summary>
        /// 合同号
        /// </summary>
        [TableColumn(DisplayText = "合同号")]
        public string? Contract { get; set; }

        /// <summary>
        /// 审批状态
        /// </summary>
        [TableColumn(DisplayText = "审批状态")]
        public int ApproveStatus { get; set; }

        public int ProductId { get; set; }

        public string? ProductCode { get; set; }

        public string? ProductName { get; set; }
        
        public double Quality { get; set; }
        
        /// <summary>
        /// 描述
        /// </summary>
        public string? Description { get; set; }

        public IEnumerable<StandardBomDetailInfoResponseDto>? Items { get; set; }
        
    }
}